package org.example.zrccddllljh.Mapper;

import org.apache.ibatis.annotations.*;
import org.example.zrccddllljh.Pojo.Doctor;

import java.util.List;

@Mapper
public interface DockerListMapper {
    @Select("select * from doctorlist ;")
    List<Doctor> list();
@Update("update doctorlist set   age=#{age},department=#{department}" +
            ",number=#{number} ,state=#{state} ,update_time=#{updateTime} where id=#{id} ;")
    void uptate(Doctor doctor);


@Insert("insert into doctorlist(name,age,department,number,state,create_time,update_time) " +
        "values(#{name},#{age},#{department},#{number},#{state},#{createTime},#{updateTime})")
    void add( Doctor doctor);
@Delete("delete from doctorlist where id=#{id} ;")
    void deleteById(Integer id);
    List<Doctor> getOrderInfoList();

    List<Doctor> getOrderInfoLists(String department, String state);
}
